/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JanelaDesktopESA.java
 *
 * Created on 22/09/2011, 02:14:49
 */
package br.ufpb.projetoesa.apresentacao;

import br.ufpb.projetoesa.comunicacao.Facade;
import br.ufpb.projetoesa.negocio.Disciplina;
import br.ufpb.projetoesa.negocio.Professor;
import br.ufpb.projetoesa.negocio.Projeto;
import java.util.List;
import javax.swing.JOptionPane;

/**
 *
 * @author leonardo
 */
public class JanelaDesktopESA extends javax.swing.JFrame {

    private Facade fachada;
    
    /** Creates new form JanelaDesktopESA */
    public JanelaDesktopESA() {
        initComponents();
        fachada = Facade.getInstance();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jDesktopPane1 = new javax.swing.JDesktopPane();
        janela_cadTurma = new javax.swing.JInternalFrame();
        tf_id_CadTurma = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        tf_numAlunos_CadTurma = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        jScrollPane1 = new javax.swing.JScrollPane();
        tb_discipDisponiveisTurma = new javax.swing.JTable();
        jScrollPane2 = new javax.swing.JScrollPane();
        tb_discipInseridasNaTurma = new javax.swing.JTable();
        bt_addDiscipNaTurma = new javax.swing.JButton();
        bt_remDiscipTurma = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        bt_cadTurma = new javax.swing.JToggleButton();
        bt_cancelar_cadTurma = new javax.swing.JButton();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        janela_cadDisciplina = new javax.swing.JInternalFrame();
        jLabel4 = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        tf_id_cadDisciplina = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        bt_cadDisciplina = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        tf_cred_cadDisciplina = new javax.swing.JTextField();
        tf_nome_cadDisciplina = new javax.swing.JTextField();
        bt_cancelar_cadDisciplina = new javax.swing.JButton();
        janela_cadProfessor = new javax.swing.JInternalFrame();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        tf_cad_nomeProfessor = new javax.swing.JTextField();
        tf_cad_matProfessor = new javax.swing.JTextField();
        tf_cad_foneProfessor = new javax.swing.JTextField();
        jSeparator4 = new javax.swing.JSeparator();
        jLabel14 = new javax.swing.JLabel();
        tf_cad_tituloProjeto = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        jSeparator5 = new javax.swing.JSeparator();
        bt_cad_novoProjeto = new javax.swing.JButton();
        bt_cadProfessor = new javax.swing.JButton();
        bt_cad_profCancelar = new javax.swing.JButton();
        jScrollPane3 = new javax.swing.JScrollPane();
        tx_cad_descProjeto = new javax.swing.JTextArea();
        janela_console = new javax.swing.JInternalFrame();
        jLabel16 = new javax.swing.JLabel();
        jSeparator6 = new javax.swing.JSeparator();
        jScrollPane4 = new javax.swing.JScrollPane();
        tx_console_listarProf = new javax.swing.JTextArea();
        bt_console_listarProf = new javax.swing.JButton();
        jSeparator7 = new javax.swing.JSeparator();
        jScrollPane5 = new javax.swing.JScrollPane();
        tx_console_disciplinas = new javax.swing.JTextArea();
        bt_console_listarDisc = new javax.swing.JButton();
        jSeparator8 = new javax.swing.JSeparator();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        bt_console_listarTurmas = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        icone_cadProfessor = new javax.swing.JButton();
        icone_cadDisciplina = new javax.swing.JButton();
        icone_cadTurma = new javax.swing.JButton();
        icone_pesquisar = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        janela_cadTurma.setClosable(true);
        janela_cadTurma.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        janela_cadTurma.setIconifiable(true);
        janela_cadTurma.setVisible(true);

        tf_id_CadTurma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tf_id_CadTurmaActionPerformed(evt);
            }
        });

        jLabel1.setText("Identificação:");

        jSeparator1.setBorder(javax.swing.BorderFactory.createTitledBorder("Dados da Turma"));

        jLabel2.setText("Nº de alunos:");

        jSeparator2.setBorder(javax.swing.BorderFactory.createTitledBorder("Disciplinas"));

        tb_discipDisponiveisTurma.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null}
            },
            new String [] {
                "Código", "Disciplina"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Object.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tb_discipDisponiveisTurma);

        tb_discipInseridasNaTurma.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null}
            },
            new String [] {
                "Código", "Disciplina"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane2.setViewportView(tb_discipInseridasNaTurma);

        bt_addDiscipNaTurma.setText("Add");
        bt_addDiscipNaTurma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_addDiscipNaTurmaActionPerformed(evt);
            }
        });

        bt_remDiscipTurma.setText("Rem");
        bt_remDiscipTurma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_remDiscipTurmaActionPerformed(evt);
            }
        });

        jLabel3.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel3.setText("CADASTRO DE TURMA");

        bt_cadTurma.setText("Cadastrar");
        bt_cadTurma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_cadTurmaActionPerformed(evt);
            }
        });

        bt_cancelar_cadTurma.setText("Cancelar");
        bt_cancelar_cadTurma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_cancelar_cadTurmaActionPerformed(evt);
            }
        });

        jLabel8.setText("Disponíveis:");

        jLabel9.setText("Inseridas nesta Turma:");

        javax.swing.GroupLayout janela_cadTurmaLayout = new javax.swing.GroupLayout(janela_cadTurma.getContentPane());
        janela_cadTurma.getContentPane().setLayout(janela_cadTurmaLayout);
        janela_cadTurmaLayout.setHorizontalGroup(
            janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                .addGap(288, 288, 288)
                .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(bt_addDiscipNaTurma, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(bt_remDiscipTurma, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(226, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_cadTurmaLayout.createSequentialGroup()
                .addContainerGap(247, Short.MAX_VALUE)
                .addComponent(jLabel9)
                .addGap(173, 173, 173))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(118, 118, 118)
                    .addComponent(tf_id_CadTurma, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(357, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(25, 25, 25)
                    .addComponent(jLabel1)
                    .addContainerGap(453, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(320, 320, 320)
                    .addComponent(tf_numAlunos_CadTurma, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(157, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(222, 222, 222)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(245, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(22, 22, 22)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(321, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(312, 312, 312)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(437, 437, 437)
                    .addComponent(bt_cadTurma, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(25, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(326, 326, 326)
                    .addComponent(bt_cancelar_cadTurma, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(142, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(28, 28, 28)
                    .addComponent(jLabel8)
                    .addContainerGap(457, Short.MAX_VALUE)))
        );
        janela_cadTurmaLayout.setVerticalGroup(
            janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_cadTurmaLayout.createSequentialGroup()
                .addContainerGap(175, Short.MAX_VALUE)
                .addComponent(jLabel9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(bt_addDiscipNaTurma)
                .addGap(18, 18, 18)
                .addComponent(bt_remDiscipTurma)
                .addGap(90, 90, 90))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(107, 107, 107)
                    .addComponent(tf_id_CadTurma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(229, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(107, 107, 107)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(230, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(75, 75, 75)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(203, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(104, 104, 104)
                    .addComponent(tf_numAlunos_CadTurma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(232, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(114, 114, 114)
                    .addComponent(jLabel2)
                    .addContainerGap(234, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_cadTurmaLayout.createSequentialGroup()
                    .addContainerGap(147, Short.MAX_VALUE)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(44, 44, 44)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(211, 211, 211)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(37, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(210, 210, 210)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(40, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(290, Short.MAX_VALUE)))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_cadTurmaLayout.createSequentialGroup()
                    .addContainerGap(318, Short.MAX_VALUE)
                    .addComponent(bt_cadTurma)
                    .addContainerGap()))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_cadTurmaLayout.createSequentialGroup()
                    .addContainerGap(318, Short.MAX_VALUE)
                    .addComponent(bt_cancelar_cadTurma)
                    .addContainerGap()))
            .addGroup(janela_cadTurmaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadTurmaLayout.createSequentialGroup()
                    .addGap(193, 193, 193)
                    .addComponent(jLabel8)
                    .addContainerGap(155, Short.MAX_VALUE)))
        );

        janela_cadTurma.setBounds(60, 80, 570, 410);
        jDesktopPane1.add(janela_cadTurma, javax.swing.JLayeredPane.DEFAULT_LAYER);

        janela_cadDisciplina.setClosable(true);
        janela_cadDisciplina.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        janela_cadDisciplina.setIconifiable(true);

        jLabel4.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel4.setText("CADASTRO DE DISCIPLINA");

        jSeparator3.setBorder(javax.swing.BorderFactory.createTitledBorder("Dados da disciplina"));

        jLabel5.setText("Identificação:");

        bt_cadDisciplina.setText("Cadastrar");
        bt_cadDisciplina.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_cadDisciplinaActionPerformed(evt);
            }
        });

        jLabel6.setText("Nome:");

        jLabel7.setText("Créditos:");

        bt_cancelar_cadDisciplina.setText("Cancelar");
        bt_cancelar_cadDisciplina.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_cancelar_cadDisciplinaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout janela_cadDisciplinaLayout = new javax.swing.GroupLayout(janela_cadDisciplina.getContentPane());
        janela_cadDisciplina.getContentPane().setLayout(janela_cadDisciplinaLayout);
        janela_cadDisciplinaLayout.setHorizontalGroup(
            janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 496, Short.MAX_VALUE)
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 466, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 466, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(122, 122, 122)
                    .addComponent(tf_id_cadDisciplina, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(319, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(28, 28, 28)
                    .addComponent(jLabel5)
                    .addContainerGap(383, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(374, 374, 374)
                    .addComponent(bt_cadDisciplina, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(28, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(195, 195, 195)
                    .addComponent(jLabel6)
                    .addContainerGap(260, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(56, 56, 56)
                    .addComponent(jLabel7)
                    .addContainerGap(383, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(123, 123, 123)
                    .addComponent(tf_cred_cadDisciplina, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(321, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(246, 246, 246)
                    .addComponent(tf_nome_cadDisciplina, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(274, 274, 274)
                    .addComponent(bt_cancelar_cadDisciplina, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(127, Short.MAX_VALUE)))
        );
        janela_cadDisciplinaLayout.setVerticalGroup(
            janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 264, Short.MAX_VALUE)
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(186, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(80, 80, 80)
                    .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(60, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(113, 113, 113)
                    .addComponent(tf_id_cadDisciplina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(123, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(113, 113, 113)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(125, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(225, 225, 225)
                    .addComponent(bt_cadDisciplina)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(113, 113, 113)
                    .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(126, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(163, 163, 163)
                    .addComponent(jLabel7)
                    .addContainerGap(85, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(160, 160, 160)
                    .addComponent(tf_cred_cadDisciplina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(76, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(112, 112, 112)
                    .addComponent(tf_nome_cadDisciplina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(124, Short.MAX_VALUE)))
            .addGroup(janela_cadDisciplinaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadDisciplinaLayout.createSequentialGroup()
                    .addGap(225, 225, 225)
                    .addComponent(bt_cancelar_cadDisciplina)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        janela_cadDisciplina.setBounds(240, 140, 520, 310);
        jDesktopPane1.add(janela_cadDisciplina, javax.swing.JLayeredPane.DEFAULT_LAYER);

        janela_cadProfessor.setClosable(true);
        janela_cadProfessor.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        janela_cadProfessor.setIconifiable(true);

        jLabel10.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
        jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel10.setText("CADASTRO DO PROFESSOR");

        jLabel11.setText("Nome:");

        jLabel12.setText("Matrícula:");

        jLabel13.setText("Telefone:");

        jSeparator4.setBorder(javax.swing.BorderFactory.createTitledBorder("Dados pessoais"));

        jLabel14.setText("Título:");

        jLabel15.setText("Descrição:");

        jSeparator5.setBorder(javax.swing.BorderFactory.createTitledBorder("Projeto"));

        bt_cad_novoProjeto.setText("+Projeto");
        bt_cad_novoProjeto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_cad_novoProjetoActionPerformed(evt);
            }
        });

        bt_cadProfessor.setText("Cadastrar");
        bt_cadProfessor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_cadProfessorActionPerformed(evt);
            }
        });

        bt_cad_profCancelar.setText("Cancelar");
        bt_cad_profCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_cad_profCancelarActionPerformed(evt);
            }
        });

        tx_cad_descProjeto.setColumns(20);
        tx_cad_descProjeto.setRows(5);
        jScrollPane3.setViewportView(tx_cad_descProjeto);

        javax.swing.GroupLayout janela_cadProfessorLayout = new javax.swing.GroupLayout(janela_cadProfessor.getContentPane());
        janela_cadProfessor.getContentPane().setLayout(janela_cadProfessorLayout);
        janela_cadProfessorLayout.setHorizontalGroup(
            janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                        .addGap(371, 371, 371)
                        .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(jLabel13)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(tf_cad_foneProfessor, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                                .addComponent(jLabel14)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(tf_cad_tituloProjeto, javax.swing.GroupLayout.PREFERRED_SIZE, 458, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(29, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_cadProfessorLayout.createSequentialGroup()
                .addContainerGap(328, Short.MAX_VALUE)
                .addComponent(bt_cad_profCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(250, 250, 250))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_cadProfessorLayout.createSequentialGroup()
                .addGap(465, 465, 465)
                .addComponent(bt_cad_novoProjeto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(135, 135, 135))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 573, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(39, 39, 39)
                    .addComponent(jLabel11)
                    .addContainerGap(496, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(92, 92, 92)
                    .addComponent(tf_cad_nomeProfessor, javax.swing.GroupLayout.PREFERRED_SIZE, 267, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(217, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(445, 445, 445)
                    .addComponent(tf_cad_matProfessor, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(23, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 572, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 568, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(453, 453, 453)
                    .addComponent(bt_cadProfessor, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(38, 38, 38)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 511, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(27, Short.MAX_VALUE)))
        );
        janela_cadProfessorLayout.setVerticalGroup(
            janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                .addGap(101, 101, 101)
                .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tf_cad_foneProfessor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(52, 52, 52)
                .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tf_cad_tituloProjeto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 77, Short.MAX_VALUE)
                .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_cadProfessorLayout.createSequentialGroup()
                        .addComponent(bt_cad_profCancelar)
                        .addContainerGap())
                    .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                        .addComponent(bt_cad_novoProjeto, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(63, 63, 63))))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(364, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(101, 101, 101)
                    .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(318, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(100, 100, 100)
                    .addComponent(tf_cad_nomeProfessor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(316, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(101, 101, 101)
                    .addComponent(tf_cad_matProfessor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(315, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(76, 76, 76)
                    .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(257, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(191, 191, 191)
                    .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(37, Short.MAX_VALUE)))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_cadProfessorLayout.createSequentialGroup()
                    .addContainerGap(398, Short.MAX_VALUE)
                    .addComponent(bt_cadProfessor)
                    .addContainerGap()))
            .addGroup(janela_cadProfessorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_cadProfessorLayout.createSequentialGroup()
                    .addGap(276, 276, 276)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(73, Short.MAX_VALUE)))
        );

        janela_cadProfessor.setBounds(170, 50, 600, 490);
        jDesktopPane1.add(janela_cadProfessor, javax.swing.JLayeredPane.DEFAULT_LAYER);

        janela_console.setClosable(true);
        janela_console.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        janela_console.setIconifiable(true);

        jLabel16.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
        jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel16.setText("Consulta");

        jSeparator6.setBorder(javax.swing.BorderFactory.createTitledBorder("Professor"));

        tx_console_listarProf.setColumns(20);
        tx_console_listarProf.setEditable(false);
        tx_console_listarProf.setRows(5);
        jScrollPane4.setViewportView(tx_console_listarProf);

        bt_console_listarProf.setText("Listar Todos");
        bt_console_listarProf.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_console_listarProfActionPerformed(evt);
            }
        });

        jSeparator7.setBorder(javax.swing.BorderFactory.createTitledBorder("Disciplina"));

        tx_console_disciplinas.setColumns(20);
        tx_console_disciplinas.setEditable(false);
        tx_console_disciplinas.setRows(5);
        jScrollPane5.setViewportView(tx_console_disciplinas);

        bt_console_listarDisc.setText("Listar Todas");
        bt_console_listarDisc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_console_listarDiscActionPerformed(evt);
            }
        });

        jSeparator8.setBorder(javax.swing.BorderFactory.createTitledBorder("Turma"));

        jTextArea1.setColumns(20);
        jTextArea1.setEditable(false);
        jTextArea1.setRows(5);
        jScrollPane6.setViewportView(jTextArea1);

        bt_console_listarTurmas.setText("Listar Todas");
        bt_console_listarTurmas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt_console_listarTurmasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout janela_consoleLayout = new javax.swing.GroupLayout(janela_console.getContentPane());
        janela_console.getContentPane().setLayout(janela_consoleLayout);
        janela_consoleLayout.setHorizontalGroup(
            janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_consoleLayout.createSequentialGroup()
                .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(janela_consoleLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(bt_console_listarTurmas, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(janela_consoleLayout.createSequentialGroup()
                        .addGap(509, 509, 509)
                        .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(bt_console_listarDisc, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 115, Short.MAX_VALUE)
                            .addComponent(bt_console_listarProf, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 115, Short.MAX_VALUE))))
                .addGap(50, 50, 50))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jSeparator6, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addGap(39, 39, 39)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 604, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(23, Short.MAX_VALUE)))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jSeparator7, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addGap(42, 42, 42)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 599, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(25, Short.MAX_VALUE)))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jSeparator8, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                    .addContainerGap()))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addGap(43, 43, 43)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 600, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(23, Short.MAX_VALUE)))
        );
        janela_consoleLayout.setVerticalGroup(
            janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(janela_consoleLayout.createSequentialGroup()
                .addGap(153, 153, 153)
                .addComponent(bt_console_listarProf, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(134, 134, 134)
                .addComponent(bt_console_listarDisc, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 164, Short.MAX_VALUE)
                .addComponent(bt_console_listarTurmas, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(23, 23, 23))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel16)
                    .addContainerGap(492, Short.MAX_VALUE)))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addGap(40, 40, 40)
                    .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(348, Short.MAX_VALUE)))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addGap(63, 63, 63)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(387, Short.MAX_VALUE)))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addGap(188, 188, 188)
                    .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(198, Short.MAX_VALUE)))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addGap(209, 209, 209)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(241, Short.MAX_VALUE)))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, janela_consoleLayout.createSequentialGroup()
                    .addContainerGap(369, Short.MAX_VALUE)
                    .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()))
            .addGroup(janela_consoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(janela_consoleLayout.createSequentialGroup()
                    .addGap(359, 359, 359)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(91, Short.MAX_VALUE)))
        );

        janela_console.setBounds(110, 20, 690, 580);
        jDesktopPane1.add(janela_console, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel1.setBackground(new java.awt.Color(23, 37, 72));

        icone_cadProfessor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/ufpb/projetoesa/imagens/ic_cadastro_prof.png"))); // NOI18N
        icone_cadProfessor.setText("Cadastrar Professor");
        icone_cadProfessor.setBorderPainted(false);
        icone_cadProfessor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        icone_cadProfessor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        icone_cadProfessor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                icone_cadProfessorActionPerformed(evt);
            }
        });

        icone_cadDisciplina.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/ufpb/projetoesa/imagens/ic_cadastra_disciplina.png"))); // NOI18N
        icone_cadDisciplina.setText("Cadastrar Disciplina");
        icone_cadDisciplina.setBorderPainted(false);
        icone_cadDisciplina.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        icone_cadDisciplina.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        icone_cadDisciplina.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                icone_cadDisciplinaActionPerformed(evt);
            }
        });

        icone_cadTurma.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/ufpb/projetoesa/imagens/ic_cadastro_turma.png"))); // NOI18N
        icone_cadTurma.setText("Cadastrar Turma");
        icone_cadTurma.setBorderPainted(false);
        icone_cadTurma.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        icone_cadTurma.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        icone_cadTurma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                icone_cadTurmaActionPerformed(evt);
            }
        });

        icone_pesquisar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/ufpb/projetoesa/imagens/ic_pesquisa.png"))); // NOI18N
        icone_pesquisar.setText("Consulta");
        icone_pesquisar.setBorderPainted(false);
        icone_pesquisar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        icone_pesquisar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        icone_pesquisar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                icone_pesquisarActionPerformed(evt);
            }
        });

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/ufpb/projetoesa/imagens/ic_delete_sair.png"))); // NOI18N
        jButton1.setText("Fechar");
        jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jPanel2.setBackground(new java.awt.Color(98, 98, 98));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 806, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 12, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap(73, Short.MAX_VALUE)
                .addComponent(icone_cadProfessor)
                .addGap(30, 30, 30)
                .addComponent(icone_cadDisciplina)
                .addGap(26, 26, 26)
                .addComponent(icone_cadTurma)
                .addGap(30, 30, 30)
                .addComponent(icone_pesquisar)
                .addGap(35, 35, 35)
                .addComponent(jButton1)
                .addGap(97, 97, 97))
            .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(icone_cadProfessor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(icone_cadDisciplina, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)
                    .addComponent(icone_cadTurma, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)
                    .addComponent(icone_pesquisar, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE)
                    .addComponent(jButton1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jDesktopPane1)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 563, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tf_id_CadTurmaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tf_id_CadTurmaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tf_id_CadTurmaActionPerformed

    private void bt_cancelar_cadDisciplinaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_cancelar_cadDisciplinaActionPerformed
        janela_cadDisciplina.setVisible(false);
    }//GEN-LAST:event_bt_cancelar_cadDisciplinaActionPerformed

    private void bt_cadDisciplinaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_cadDisciplinaActionPerformed
        cadastraDisciplina();
        limparDadosCadastroDisciplina();
    }//GEN-LAST:event_bt_cadDisciplinaActionPerformed

    private void bt_addDiscipNaTurmaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_addDiscipNaTurmaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_bt_addDiscipNaTurmaActionPerformed

    private void bt_remDiscipTurmaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_remDiscipTurmaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_bt_remDiscipTurmaActionPerformed

    private void bt_cancelar_cadTurmaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_cancelar_cadTurmaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_bt_cancelar_cadTurmaActionPerformed

    private void bt_cadTurmaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_cadTurmaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_bt_cadTurmaActionPerformed

    private void bt_console_listarProfActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_console_listarProfActionPerformed
        listarProfessores();
    }//GEN-LAST:event_bt_console_listarProfActionPerformed

    private void bt_console_listarDiscActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_console_listarDiscActionPerformed
        listarDisciplinas();
    }//GEN-LAST:event_bt_console_listarDiscActionPerformed

    private void bt_console_listarTurmasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_console_listarTurmasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_bt_console_listarTurmasActionPerformed

    private void icone_cadProfessorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_icone_cadProfessorActionPerformed
        janela_cadProfessor.setVisible(true);
    }//GEN-LAST:event_icone_cadProfessorActionPerformed

    private void icone_cadDisciplinaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_icone_cadDisciplinaActionPerformed
        janela_cadDisciplina.setVisible(true);
    }//GEN-LAST:event_icone_cadDisciplinaActionPerformed

    private void icone_cadTurmaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_icone_cadTurmaActionPerformed
        janela_cadTurma.setVisible(true);
    }//GEN-LAST:event_icone_cadTurmaActionPerformed

    private void icone_pesquisarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_icone_pesquisarActionPerformed
        janela_console.setVisible(true);
    }//GEN-LAST:event_icone_pesquisarActionPerformed

    private void bt_cad_novoProjetoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_cad_novoProjetoActionPerformed
        JOptionPane.showMessageDialog(null, "No momento só é permitido cadastrar um.", "ATENÇÃO", JOptionPane.WARNING_MESSAGE);
    }//GEN-LAST:event_bt_cad_novoProjetoActionPerformed

    private void bt_cadProfessorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_cadProfessorActionPerformed
        cadastrarProfessor();
        limparDadosProfessor();
    }//GEN-LAST:event_bt_cadProfessorActionPerformed

    private void bt_cad_profCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_cad_profCancelarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_bt_cad_profCancelarActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        System.exit(0);
    }//GEN-LAST:event_jButton1ActionPerformed

    
    private void cadastrarProfessor(){
        
        if (!tf_cad_nomeProfessor.getText().equals("") && !tf_cad_matProfessor.getText().equals("")){
            if (tf_cad_tituloProjeto.getText().equals("")){ //não tem projeto
                Professor prof = new Professor(tf_cad_nomeProfessor.getText(), tf_cad_matProfessor.getText(), tf_cad_foneProfessor.getText());
                fachada.cadastraProfessores(prof);
                JOptionPane.showMessageDialog(null, "Professor cadastrado com sucesso!", "Informação", JOptionPane.INFORMATION_MESSAGE);
            } else {
                if (!tf_cad_tituloProjeto.getText().equals("")){
                    Projeto proj = new Projeto(tf_cad_tituloProjeto.getText(), "");
                    Professor prof = new Professor(tf_cad_nomeProfessor.getText(), tf_cad_matProfessor.getText(), tf_cad_foneProfessor.getText());
                    prof.addProjeto(proj);
                    fachada.cadastraProfessores(prof);
                    JOptionPane.showMessageDialog(null, "Professor cadastrado com sucesso!", "Informação", JOptionPane.INFORMATION_MESSAGE);
                } else {
                    JOptionPane.showMessageDialog(null, "Existem campos que devem ser preenchidos no projeto,\n"
                            + " ou se preferir, pode deixar em branco.", "ATENÇÃO", JOptionPane.WARNING_MESSAGE);
                }
            }
        } else {
            JOptionPane.showMessageDialog(null, "Existem campos que devem ser preenchidos", "ATENÇÃO", JOptionPane.WARNING_MESSAGE);
        }
        
    }
    
    
    
    private void cadastraDisciplina(){
        if (!tf_id_cadDisciplina.getText().equals("") && !tf_nome_cadDisciplina.getText().equals("")){
            if (tf_cred_cadDisciplina.getText().equals("")) {
                fachada.addDisciplina(tf_id_cadDisciplina.getText(), tf_nome_cadDisciplina.getText());
            } else {
                fachada.addDisciplina(tf_id_cadDisciplina.getText(), tf_nome_cadDisciplina.getText(), 
                        Integer.parseInt(tf_cred_cadDisciplina.getText()));
            }
            JOptionPane.showMessageDialog(null, "Disciplina cadastrada com sucesso!", "Informação", JOptionPane.INFORMATION_MESSAGE);
        } else {
            JOptionPane.showMessageDialog(null, "Existem campos que devem ser preenchidos.", "ATENÇÃO", JOptionPane.WARNING_MESSAGE);
        }
    }
    
    
    private void listarDisciplinas() {        
        List<Disciplina> disciplinas = fachada.getDisciplinas();
        tx_console_disciplinas.setText("");
        for(Disciplina d: disciplinas){
            tx_console_disciplinas.setText(tx_console_disciplinas.getText() + d.toString() + "\n\n");
        }        
    }
    
    private void listarProfessores(){
        List<Professor> professores = fachada.getProfessores();
        tx_console_listarProf.setText("");
        for(Professor p: professores){
            tx_console_listarProf.setText(tx_console_listarProf.getText() + p.toString() + "\n\n");
        } 
    }
    
    private void limparDadosProfessor(){
        tf_cad_nomeProfessor.setText("");
        tf_cad_matProfessor.setText("");
        tf_cad_foneProfessor.setText("");
        tf_cad_tituloProjeto.setText("");
        tx_cad_descProjeto.setText("");
    }
    
    private void limparDadosCadastroDisciplina(){
        tf_id_cadDisciplina.setText("");
        tf_nome_cadDisciplina.setText("");
        tf_cred_cadDisciplina.setText("");
    }
    
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JanelaDesktopESA.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JanelaDesktopESA.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JanelaDesktopESA.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JanelaDesktopESA.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JanelaDesktopESA().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bt_addDiscipNaTurma;
    private javax.swing.JButton bt_cadDisciplina;
    private javax.swing.JButton bt_cadProfessor;
    private javax.swing.JToggleButton bt_cadTurma;
    private javax.swing.JButton bt_cad_novoProjeto;
    private javax.swing.JButton bt_cad_profCancelar;
    private javax.swing.JButton bt_cancelar_cadDisciplina;
    private javax.swing.JButton bt_cancelar_cadTurma;
    private javax.swing.JButton bt_console_listarDisc;
    private javax.swing.JButton bt_console_listarProf;
    private javax.swing.JButton bt_console_listarTurmas;
    private javax.swing.JButton bt_remDiscipTurma;
    private javax.swing.JButton icone_cadDisciplina;
    private javax.swing.JButton icone_cadProfessor;
    private javax.swing.JButton icone_cadTurma;
    private javax.swing.JButton icone_pesquisar;
    private javax.swing.JButton jButton1;
    private javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSeparator jSeparator6;
    private javax.swing.JSeparator jSeparator7;
    private javax.swing.JSeparator jSeparator8;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JInternalFrame janela_cadDisciplina;
    private javax.swing.JInternalFrame janela_cadProfessor;
    private javax.swing.JInternalFrame janela_cadTurma;
    private javax.swing.JInternalFrame janela_console;
    private javax.swing.JTable tb_discipDisponiveisTurma;
    private javax.swing.JTable tb_discipInseridasNaTurma;
    private javax.swing.JTextField tf_cad_foneProfessor;
    private javax.swing.JTextField tf_cad_matProfessor;
    private javax.swing.JTextField tf_cad_nomeProfessor;
    private javax.swing.JTextField tf_cad_tituloProjeto;
    private javax.swing.JTextField tf_cred_cadDisciplina;
    private javax.swing.JTextField tf_id_CadTurma;
    private javax.swing.JTextField tf_id_cadDisciplina;
    private javax.swing.JTextField tf_nome_cadDisciplina;
    private javax.swing.JTextField tf_numAlunos_CadTurma;
    private javax.swing.JTextArea tx_cad_descProjeto;
    private javax.swing.JTextArea tx_console_disciplinas;
    private javax.swing.JTextArea tx_console_listarProf;
    // End of variables declaration//GEN-END:variables
}
